{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-offset-3 col-md-6">
        <div class="panel">
            <div class="panel-heading">批量发送站内消息</div>
            <div class="panel-body">
                <form method="post" class="form-horizontal">
                    <input type="hidden" name="action" value="add">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">选择用户</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type"
                                    onchange="var type = this.value; if (type == 99){$('#uid').show();}else{$('#uid').hide();}">
                                <option value="88">所有用户</option>
                                <option value="9">所有站长</option>
                                <option value="90">普通分站站长</option>
                                <option value="91">二级主站站长</option>
                                <option value="92">超级主站站长</option>
                                <option value="0">普通用户</option>
                                <option value="1">VIP1用户</option>
                                <option value="2">VIP2用户</option>
                                <option value="3">VIP3用户</option>
                                <option value="4">VIP4用户</option>
                                <option value="5">VIP5用户</option>
                                <option value="99">指定用户</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group" style="display: none" id="uid">
                        <label class="col-sm-2 control-label">用户UID</label>
                        <div class="col-sm-10">
                            <input type="number" name="uid" class="form-control" placeholder="输入指定用户的UID">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">强制查看</label>
                        <div class="col-sm-10">
                            <select name="force" class="form-control">
                                <option value="0">否</option>
                                <option value="1">是(弹窗显示)</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">标题</label>
                        <div class="col-sm-10">
                            <input type="text" name="title" class="form-control" placeholder="输入消息标题，20字以内(必填)">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">消息内容</label>
                        <div class="col-sm-10">
                            <textarea name="message" class="form-control" rows="5" placeholder="输入消息内容(必填)"></textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button class="btn btn-success" type="submit">&lt;&lt;&lt;发送&gt;&gt;&gt;</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
